/*
 *    Copyright (c) 2018-2025, zhangjian All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the jfcloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: zhangjian (i_amzxj@163.com)
 */

package com.gitee.zeric.codec.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.File;
import java.util.Date;

/**
 * 系统编码生成规则模块
 *
 * @author zhangjian
 * @date 2021-12-07 14:44:01
 */
@Data
@TableName("sys_code_rule_generate")
@EqualsAndHashCode(callSuper = true)
public class SysCodeRuleGenerate extends Model<SysCodeRuleGenerate> {


    private static final long serialVersionUID = 4151169743468695729L;
    /**
     * 编号
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 规则名称
     */
    private String name;

    /**
     * 规则code
     */
    private String ruleCode;

    /**
     * 规则实现类
     */
    private String implementClass;

    /**
     * 规则实现类
     */
    private String ruleType;

    private String ruleValue;

    private String rulePlaceholder;

    /**
     * 用户来源
     */
    private String ruleParam;

    /**
     * 规则描述
     */
    private String description;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 共有或私有，共有为-999 私有为orgid
     */
    private Integer privateOrg;

    /**
     * 业务分类
     */
    private String businessType;

    /**
     * 数据长度
     */
    private Integer size;

    /**
     * 删除
     */
    private String delFlag;

    public final static String COL_RULE_TYPE = "rule_type";

    @TableField(exist = false)
    private File img;

    /**
     * 租户
     */
    private Integer tenantId;

}
